www.mxdraw.com
|
返回对象的扩展字典
[helpstring("method GetExtensionDictionary")] HRESULT GetExtensionDictionary([out,retval] IMxDrawDictionary** ppDictionary);
例如:
// 得到实体扩展字典 MxDrawDictionary dict = ent.GetExtensionDictionary(); if (dict == null) return; // 得到字典下自己写数据的字典 MxDrawDictionary myDict = (MxDrawDictionary)dict.GetAt("MyDict"); if (myDict == null) { return ; } // 得到字典内扩展记录. MxDrawXRecord rec = (MxDrawXRecord)myDict.GetAt("MyGlobalData"); if (rec == null) { return ; } // 输出扩展记录中的数据. MxDrawResbuf data = rec.GetXRecordData(); data.PrintData();